home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
lang
/
rcs567pc
/
diff16
/
makefile.dos
< prev
next >
Wrap
Makefile
|
1994-06-24
|
1KB
|
60 lines
# Makefile for GNU DIFF with Microsoft C 6.00 under DOS
# produces real-mode-only versions
# This Makefile requires NMAKE !
# For C 5.10, you can remove -D__STDC__ from CFLAGS because it is
# always defined in C 5.10 while only with -Za in C 6.00.
# -Za cannot be used here because of the huge keyword which is used
# instead of _huge for compatibility with C 5.10, _huge is also
# available with -Za while huge only without -Za.
# change this as needed to find setargv.obj
LIBDIR = d:\msc\lib
# be careful when changing anything below
CC = cl
DEFS = -D__STDC__ -DUSG -DPROTO
CFLAGS = -nologo -AC -Zp -J -G2s -Ocegit -I. $(DEFS)
LD = link
LDFLAGS = /nologo /noe /noi /st:0x8000
OBJ1 = diff.obj analyze.obj io.obj context.obj ed.obj normal.obj
OBJ2 = util.obj dir.obj ifdef.obj version.obj getopt.obj getopt1.obj
OBJ3 = regex.obj merged.obj hrealloc.obj pipe.obj
OBJ = diff3.obj version.obj getopt.obj getopt1.obj pipe.obj
OTHER = $(LIBDIR)\setargv.obj
.c.obj:
$(CC) $(CFLAGS) -Fo$*.obj -c $*.c
all: diff.exe diff3.exe
diff.exe: $(OBJ1) $(OBJ2) $(OBJ3)
$(LD) @<<diff.lnk
$(LDFLAGS) +
$(OBJ1) +
$(OBJ2) +
$(OBJ3) +
$(OTHER)
$@;
<<
diff3.exe: $(OBJ)
$(LD) @<<diff3.lnk
$(LDFLAGS) +
$(OBJ) +
$(OTHER)
$@;
<<
$(OBJ1) $(OBJ2) $(OBJ3): diff.h
context.obj diff.obj: regex.h
diff3.obj: diff3.c
$(CC) $(CFLAGS) -c -DDIFF_PROGRAM=\"diff.exe\" $*.c
clean:
del *.obj